<?php

/**
 * Here, we are connecting '/' (base path) to controller called 'Pages',
 * its action called 'display', and we pass a param to select the view file
 * to use (in this case, /app/View/Song/home.ctp)...
 */
        Router::connect('/', array('controller' => 'songs', 'action' => 'index'));
        Router::connect('/upload', array('controller' => 'songs', 'action' => 'add'));

/**
 * User roat
 *  
 */

        Router::connect('/users', array('plugin' => 'users', 'controller' => 'users'));
	Router::connect('/users/index/*', array('plugin' => 'users', 'controller' => 'users'));
	Router::connect('/users/:action', array('plugin' => 'users', 'controller' => 'users'));
	Router::connect('/users/users/:action', array('plugin' => 'users', 'controller' => 'users'));
	Router::connect('/login/*', array('plugin' => 'users', 'controller' => 'users', 'action' => 'login'));
	Router::connect('/logout/*', array('plugin' => 'users', 'controller' => 'users', 'action' => 'logout'));
	Router::connect('/register/*', array('plugin' => 'users', 'controller' => 'users', 'action' => 'add'));

?>
